package cn.aitrox.ry.service.auth.dao;

import cn.aitrox.ry.common.dao.BaseDao;
import cn.aitrox.ry.service.auth.entity.AuthRolePermissionEntity;

import java.util.List;

public interface AuthRolePermissionDao extends BaseDao<AuthRolePermissionEntity> {

    void deleteByRoleIds(List<Integer> roleIds);

    void deleteByPermissionIds(List<Integer> permissionIds);

    void batchInsert(List<AuthRolePermissionEntity> list);

    void deleteByRoleIdPermissionIds(Integer roleId, List<Integer> permissionIds);

    List<AuthRolePermissionEntity> findByRoleIds(List<Integer> roleIds);
}
